<?php
	class test extends BaseController{
		public function getData($in_params = ''){
			$test = new m_TestModel();
			$data = $test->select();
			$this->template_data['t'] = $data;
			$this->template_data['ahoj'] = "Hello world";
			general::debug("testovacia sprava", $this->template_data);
			//general::redirect("intro");
			return;
		}
		
		
		public function action_test($in_params = ''){
			$test = new m_TestModel();
			$test->name = $in_params["name"];
			$test->number = $in_params["number"];
			$test->insert();	
			return $test;
		}
	}
?>